﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Pages_UnitInsert" Codebehind="UnitInsert.aspx.cs" MasterPageFile="~/Pages/Master/MainAdmin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <fieldset id="pageLoad">
        <div id="fillInData">
           <h1>Cadastro de Unidade</h1>
           <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                CssClass="validation message" />
           <div class="fillInDataField">
                <div class="label">
                    <label for="txbDescription">Nome</label>
                </div>
                <asp:TextBox ID="txbName" runat="server" CssClass="component medium" MaxLenght="100"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txbName" ErrorMessage="Digite um nome" 
                    CssClass="validation">*</asp:RequiredFieldValidator>
           </div>

           <div class="fillInDataField">
                <div class="label">
                    <label for="ddlState">Estado</label>
                </div>
                <asp:DropDownList ID="ddlState" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlState_SelectedIndexChanged" 
                    CssClass="component small">
                </asp:DropDownList>
           </div>

           <div class="fillInDataField">
                <div class="label">
                    <label for="ddlCity">Cidade</label>
                </div>
                <asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlCity_SelectedIndexChanged" 
                    CssClass="component small">
                </asp:DropDownList>
           </div>

           <div class="fillInDataField">
                <div class="label">
                    <label for="ddlPlace">Lugar</label>
                </div>
                <asp:DropDownList ID="ddlPlace" runat="server" CssClass="component small">
                </asp:DropDownList>
           </div>


           <asp:Button ID="txbInsert" runat="server" onclick="btnInsert_Click" 
            Text="Cadastrar" CssClass="button add" />
        </div>
        </fieldset>
</asp:Content>
